

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class BezitherPainter extends CustomPainter{
  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint();
    paint.color = Colors.red;
    paint.strokeWidth = 2;
    paint.style = PaintingStyle.stroke;
    // paint.
    // paint.
    var path = Path();
    path.moveTo(10, 10);
    path.lineTo(100, 10);
    path.lineTo(100, 60);
    // path.lineTo(10, 60);
    // path.close();


    // canvas.drawPath(path, paint);

    var bounds = path.getBounds();
    paint.color = Colors.black;
    canvas.drawRect(bounds, paint);
  }

  @override
  bool shouldRepaint(covariant CustomPainter oldDelegate) => true;

}